import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import { MainComponent } from './src/mian.component';


const routes: Routes = [
    { path: 'main', component : MainComponent},
    { path: 'redux', loadChildren : './redux/module#Module'},
    { path: '**', component: MainComponent },
    { path: '', redirectTo: '/main', pathMatch: 'full'},
];
@NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule],
})
export class AppRoutingModule {}

